home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Magazine Collection 2001
/
Delphi Magazine Collection 20001 (2001).iso
/
DISKS
/
ISSUE23
/
SURVIVE
/
tables.sql
< prev
next >
Wrap
Text File
|
1997-05-19
|
1KB
|
35 lines
connect "e:\sst\articles\9707\code\demo.gdb"
user "SYSDBA" password "masterkey";
create generator Gen_CreditNo;
commit;
drop table PaymentMethods;
create table PaymentMethods
(
PayMethodCode char(2) not null primary key,
PayMethodName char(20) not null,
Sequence smallint not null
);
commit;
insert into PaymentMethods values ('CS', 'Cash', 1);
insert into PaymentMethods values ('CK', 'Personal Check', 2);
insert into PaymentMethods values ('TC', 'Traveler''s Check', 3);
insert into PaymentMethods values ('CC', 'Cashier''s Check', 4);
insert into PaymentMethods values ('OT', 'Other', 5);
drop table Credits;
create table Credits
(
CreditNo integer not null primary key,
Status char(1) default 'V' not null,
CustNo integer not null,
Amount float default 0 not null,
BalanceDue float default 0 not null,
IssueDateTime date default 'now' not null
);
commit;
exit;